<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>spGpu library: DIA/HDIA Format</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">spGpu library
   &#160;<span id="projectnumber">1.2.1</span>
   </div>
   <div id="projectbrief">spgpu</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#define-members">Defines</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">DIA/HDIA Format</div>  </div>
</div>
<div class="contents">
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#ga76b29161bd32f9c4440278a7da63bd78">DIA_PITCH_ALIGN_BYTE</a>&#160;&#160;&#160;128</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This is the pitch alignment that must be fullfilled by the coefficients and the row pointers allocations.  <a href="#ga76b29161bd32f9c4440278a7da63bd78"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#gae9384593ab9b584bad71d03800de258e">spgpuSdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, __device float *z, const __device float *y, float alpha, const __device float *dM, const __device int *offsets, int dMPitch, int rows, int cols, int diags, const __device float *x, float beta)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#gad873eabc3b4afac4f9bac7a34e42b653">spgpuDdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, __device double *z, const __device double *y, double alpha, const __device double *dM, const __device int *offsets, int dMPitch, int rows, int cols, int diags, const __device double *x, double beta)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#ga3bbcd597fa950d8cc409e53b0649b03f">spgpuShdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, float *z, const float *y, float alpha, const float *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const float *x, float beta)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#ga16e6fedad25c07ff0928f4e4456b4d1f">spgpuDhdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, double *z, const double *y, double alpha, const double *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const double *x, double beta)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#gaa6ecef9a6c22b41e8277e3eb3059da55">spgpuDbhdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, double *z, const double *y, double alpha, int blockRows, int blockCols, const double *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const double *x, double beta)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__dia_fun.html#gafa337324f0f217c47a2142bb7f6dcf73">spgpuSbhdiaspmv</a> (<a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a> handle, float *z, const float *y, float alpha, int blockRows, int blockCols, const float *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const float *x, float beta)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="ga76b29161bd32f9c4440278a7da63bd78"></a><!-- doxytag: member="dia.h::DIA_PITCH_ALIGN_BYTE" ref="ga76b29161bd32f9c4440278a7da63bd78" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DIA_PITCH_ALIGN_BYTE&#160;&#160;&#160;128</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>This is the pitch alignment that must be fullfilled by the coefficients and the row pointers allocations. </p>

</div>
</div>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="gaa6ecef9a6c22b41e8277e3eb3059da55"></a><!-- doxytag: member="hdia.h::spgpuDbhdiaspmv" ref="gaa6ecef9a6c22b41e8277e3eb3059da55" args="(spgpuHandle_t handle, double *z, const double *y, double alpha, int blockRows, int blockCols, const double *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const double *x, double beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void spgpuDbhdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockRows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockCols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hackSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>hackOffsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gad873eabc3b4afac4f9bac7a34e42b653"></a><!-- doxytag: member="dia.h::spgpuDdiaspmv" ref="gad873eabc3b4afac4f9bac7a34e42b653" args="(spgpuHandle_t handle, __device double *z, const __device double *y, double alpha, const __device double *dM, const __device int *offsets, int dMPitch, int rows, int cols, int diags, const __device double *x, double beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void spgpuDdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">__device double *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device double *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device double *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dMPitch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>diags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device double *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes double precision z = alpha*A*x + beta*y, with A stored in Diagonal Format on GPU. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>The spgpu handle used to call this routine </td></tr>
    <tr><td class="paramname">z</td><td>The output vector of the routine. z could be y, but not y + k (i.e. an overlapping area over y, but starting from a base index different from y). </td></tr>
    <tr><td class="paramname">y</td><td>The y input vector </td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha scalar </td></tr>
    <tr><td class="paramname">dM</td><td>The DIA non zero values allocation pointer (stored column-major) </td></tr>
    <tr><td class="paramname">offsets</td><td>The DIA diagonals offsets vector </td></tr>
    <tr><td class="paramname">dMPitch</td><td>the pitch (in number of elements) of the allocation containing the matrix non zero values </td></tr>
    <tr><td class="paramname">rows</td><td>the rows count </td></tr>
    <tr><td class="paramname">cols</td><td>the columns count </td></tr>
    <tr><td class="paramname">diags</td><td>the diagonals count </td></tr>
    <tr><td class="paramname">x</td><td>the x vector </td></tr>
    <tr><td class="paramname">beta</td><td>the beta scalar </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga16e6fedad25c07ff0928f4e4456b4d1f"></a><!-- doxytag: member="hdia.h::spgpuDhdiaspmv" ref="ga16e6fedad25c07ff0928f4e4456b4d1f" args="(spgpuHandle_t handle, double *z, const double *y, double alpha, const double *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const double *x, double beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">spgpuDhdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hackSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>hackOffsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes double precision z = alpha*A*x + beta*y, with A stored in Hacked Diagonal Format on GPU. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>The spgpu handle used to call this routine </td></tr>
    <tr><td class="paramname">z</td><td>The output vector of the routine. z could be y, but not y + k (i.e. an overlapping area over y, but starting from a base index different from y). </td></tr>
    <tr><td class="paramname">y</td><td>The y input vector </td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha scalar </td></tr>
    <tr><td class="paramname">dM</td><td>The stacked HDIA non zero values allocation pointer </td></tr>
    <tr><td class="paramname">offsets</td><td>The stacked HDIA diagonals offsets vector </td></tr>
    <tr><td class="paramname">hackSize</td><td>The constant size of every hack (must be a multiple of 32) </td></tr>
    <tr><td class="paramname">hackOffsets</td><td>the array of base index offset for every hack of HDIA offsets vector, plus a last value equal to the size of the offsets vector </td></tr>
    <tr><td class="paramname">rows</td><td>the rows count </td></tr>
    <tr><td class="paramname">cols</td><td>the columns count </td></tr>
    <tr><td class="paramname">x</td><td>the x vector </td></tr>
    <tr><td class="paramname">beta</td><td>the beta scalar </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="gafa337324f0f217c47a2142bb7f6dcf73"></a><!-- doxytag: member="hdia.h::spgpuSbhdiaspmv" ref="gafa337324f0f217c47a2142bb7f6dcf73" args="(spgpuHandle_t handle, float *z, const float *y, float alpha, int blockRows, int blockCols, const float *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const float *x, float beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void spgpuSbhdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockRows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>blockCols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hackSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>hackOffsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="gae9384593ab9b584bad71d03800de258e"></a><!-- doxytag: member="dia.h::spgpuSdiaspmv" ref="gae9384593ab9b584bad71d03800de258e" args="(spgpuHandle_t handle, __device float *z, const __device float *y, float alpha, const __device float *dM, const __device int *offsets, int dMPitch, int rows, int cols, int diags, const __device float *x, float beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void spgpuSdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">__device float *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device float *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device float *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>dMPitch</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>diags</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const __device float *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes single precision z = alpha*A*x + beta*y, with A stored in Diagonal Format on GPU. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>The spgpu handle used to call this routine </td></tr>
    <tr><td class="paramname">z</td><td>The output vector of the routine. z could be y, but not y + k (i.e. an overlapping area over y, but starting from a base index different from y). </td></tr>
    <tr><td class="paramname">y</td><td>The y input vector </td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha scalar </td></tr>
    <tr><td class="paramname">dM</td><td>The DIA non zero values allocation pointer (stored column-major) </td></tr>
    <tr><td class="paramname">offsets</td><td>The DIA diagonals offsets vector </td></tr>
    <tr><td class="paramname">dMPitch</td><td>the pitch (in number of elements) of the allocation containing the matrix non zero values </td></tr>
    <tr><td class="paramname">rows</td><td>the rows count </td></tr>
    <tr><td class="paramname">cols</td><td>the columns count </td></tr>
    <tr><td class="paramname">diags</td><td>the diagonals count </td></tr>
    <tr><td class="paramname">x</td><td>the x vector </td></tr>
    <tr><td class="paramname">beta</td><td>the beta scalar </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga3bbcd597fa950d8cc409e53b0649b03f"></a><!-- doxytag: member="hdia.h::spgpuShdiaspmv" ref="ga3bbcd597fa950d8cc409e53b0649b03f" args="(spgpuHandle_t handle, float *z, const float *y, float alpha, const float *dM, const int *offsets, int hackSize, const int *hackOffsets, int rows, int cols, const float *x, float beta)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">spgpuShdiaspmv </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group__core_fun.html#ga5d4825ac610d6524df843758da392dec">spgpuHandle_t</a>&#160;</td>
          <td class="paramname"><em>handle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float *&#160;</td>
          <td class="paramname"><em>z</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>y</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>alpha</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>dM</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>offsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>hackSize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int *&#160;</td>
          <td class="paramname"><em>hackOffsets</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rows</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>cols</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const float *&#160;</td>
          <td class="paramname"><em>x</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>beta</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Computes single precision z = alpha*A*x + beta*y, with A stored in Hacked Diagonal Format on GPU. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">handle</td><td>The spgpu handle used to call this routine </td></tr>
    <tr><td class="paramname">z</td><td>The output vector of the routine. z could be y, but not y + k (i.e. an overlapping area over y, but starting from a base index different from y). </td></tr>
    <tr><td class="paramname">y</td><td>The y input vector </td></tr>
    <tr><td class="paramname">alpha</td><td>The alpha scalar </td></tr>
    <tr><td class="paramname">dM</td><td>The stacked HDIA non zero values allocation pointer </td></tr>
    <tr><td class="paramname">offsets</td><td>The stacked HDIA diagonals offsets vector </td></tr>
    <tr><td class="paramname">hackSize</td><td>The constant size of every hack (must be a multiple of 32) </td></tr>
    <tr><td class="paramname">hackOffsets</td><td>the array of base index offset for every hack of HDIA offsets vector, plus a last value equal to the size of the offsets vector </td></tr>
    <tr><td class="paramname">rows</td><td>the rows count </td></tr>
    <tr><td class="paramname">cols</td><td>the columns count </td></tr>
    <tr><td class="paramname">x</td><td>the x vector </td></tr>
    <tr><td class="paramname">beta</td><td>the beta scalar </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Oct 7 2014 23:31:15 for spGpu library by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5
</small></address>

</body>
</html>
